package com.origin.src.lookup;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Lookup;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

@Component
public abstract class XLookup {


//    @Autowired
    public XLookup() {
        System.out.println("@Autowired使用无参构造方法初始化");
    }

    @Autowired
    public XLookup(LookupBean1 lookupBean1, LookupBean lookupBean) {

        System.out.println("@Autowired使用多参数构造方法初始化:\n" +lookupBean1+
                "\t"+lookupBean);
    }

    @Lookup()
    public abstract LookupBean lookupBeanMethod();


    @Lookup("lookupBean1")
    public abstract LookupBean lookupBeanMethod1();

}
